package top.huhuiyu.demo.javaweb.entity;

import java.util.Date;

/**
 * 描述部门信息的类
 * entity是实体的意思，一般都是用于描述事物的作用
 *
 * @author 胡辉煜
 */
public class Dept {
  // 部门的编号
  private int id;
  // 部门的名称
  private String name;
  // 部门的描述
  private String description;
  // 部门的创建时间
  private Date created;

  // 实体类要生成字段的getter和setter方法和toString方法

  @Override
  public String toString() {
    return "Dept{" + "id=" + id + ", name='" + name + '\'' + ", description='" + description + '\'' + ", created=" + created + '}';
  }

  public int getId() {
    return id;
  }

  public void setId(int id) {
    this.id = id;
  }

  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }

  public String getDescription() {
    return description;
  }

  public void setDescription(String description) {
    this.description = description;
  }

  public Date getCreated() {
    return created;
  }

  public void setCreated(Date created) {
    this.created = created;
  }
}
